<?php
$st = "46, 56, 81, 82, 83, 84, 85, 86, 87, 1898, 4092, 4110,";

$s = substr($st,0,-1);

echo $st;

echo "<hr>";
echo "2222";
echo "<hr>";
echo $s;
?>